package com.l.web.master.system.dictionary;

import java.lang.annotation.Annotation;
import java.lang.reflect.Field;
import java.util.Map;

import org.l.qiao.Cluster;
import org.l.qiao.KeyType;
import org.l.qiao.Validate;
import org.l.qiao.annotation.Key;
import org.l.qiao.base.LType;

public class Dictionary extends Cluster {

    public Dictionary() {

    }

    public Dictionary(Map<String, Object> map) {
        super(map);
    }

    /**
     * 属性：ID，主键
     */
    @Key(keyType = KeyType.MapKey, valueType = LType.LTYPE_INTEGER, check = Validate.NUMBER, nullable = true)
    public static final String ID = "_id";

    @Key(keyType = KeyType.MapKey, valueType = LType.LTYPE_STRING, check = "^.+$", nullable = false)
    public static final String TITLE = "title";

    @Key(keyType = KeyType.MapKey, valueType = LType.LTYPE_STRING, check = "", nullable = false)
    public static final String NOTES = "notes";

    /**
     * 字典内容
     */
    public static final String KEY = "key";

}
